package lab02.test36;

//本科生
public class Undergraduate extends Student {

    public Undergraduate(){}

    public Undergraduate(String name, String category, double english, double chiense, double math) {
        super(name, category, english, chiense, math);
    }

    @Override
    public double avg() {
        return super.avg();
    }

    @Override
    public String grade() {
        if (super.avg > 79) {
            super.achiveGrade = "优秀";
        } else if (avg > 69) {
            super.achiveGrade = "良好";
        } else if (avg > 59) {
            super.achiveGrade = "一般";
        } else if (avg > 49) {
            super.achiveGrade = "及格";
        } else
            super.achiveGrade = "不及格";
        return achiveGrade;
    }
}
